package org.wuhong.mapper;

import com.wuhong.entity.Files;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface FilesMapper {
    int deleteByPrimaryKey(String id);

    int insert(Files record);

    int insertSelective(Files record);

    Files selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Files record);

    int updateByPrimaryKeyWithBLOBs(Files record);

    int updateByPrimaryKey(Files record);

    List<Files> selectFiles(String userId);

    List<Map<String,Object>> getFilesInfo(String userId);

    int insertFilesAndFolder(@Param("folderId")String folderId, @Param("fileId")String fileId);
}